package net.piencak.phonetools.gpscc;

import javax.microedition.lcdui.Alert;
import javax.microedition.lcdui.AlertType;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Gauge;
import javax.microedition.lcdui.Image;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

public class GPSCC extends MIDlet {
	
	private AboutForm aboutForm;
	private ConvertForm convertForm;

	public GPSCC() {
	}

	protected void destroyApp(boolean unconditional)
			throws MIDletStateChangeException {
	}

	protected void pauseApp() {
	}

	protected void startApp() throws MIDletStateChangeException {
		convertForm = new ConvertForm(this);
		aboutForm = new AboutForm(this);
		showConvert();
	}

	public void showAbout() {
		Display.getDisplay(this).setCurrent(aboutForm);
	}

	public void showConvert() {
		Display.getDisplay(this).setCurrent(convertForm);
	}

}
